package com.livegoods.controller;

import com.livegoods.commons.pojo.LivegoodsResult;
import com.livegoods.pojo.House;
import com.livegoods.service.DetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DetailController {


    @Autowired
    private DetailService detailService;

    @GetMapping("/detail/details")
    public House details(String id){
        return detailService.findById(id);
    }

}
